package ejT5;

import java.util.Scanner;

public class Ej02 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		System.out.print("Introduce n: ");
		int n = sc.nextInt();
				
		for (int i = 1, cant = 0; cant < n; i++) {
			if (esPrimo(i)) {
				System.out.println(i);
				cant++;
			}			
		}
		
	}
	
	private static boolean esPrimo(int numero) {
		for (int i = 2; i < numero; i++) {
			if (numero % i == 0) return false;	
		}
		return true;
	}

}
